import pandas as pd


def get_data():
    # 指定文件路径
    file_path = '../enetity_extraction/文书校对功能清单.xlsx'

    # 使用 pandas 读取 Excel 文件
    df = pd.read_excel(file_path, sheet_name=2, engine='openpyxl')

    all_list = []
    # 按行读取数据
    for index, row in df.iterrows():
        dict = {}
        dict['序号'] = row['序号']
        dict['正确句子'] = row['正确句子']
        dict['错误用例'] = row['错误用例']
        dict['类别'] = row['类别']
        all_list.append(dict)
    return all_list
